import com.future.Task
import com.diaryBlogModule.DiaryType
import com.diaryBlogModule.DiaryEntity

class BootStrap {

  def init = {servletContext ->
    new DiaryType(diaryType:'博客').save(flush:true)
    def diary=new DiaryType(diaryType:'日记').save(flush:true)
    new DiaryEntity(diaryName:'123',diaryInfo:'info',diaryType:diary).save(flush:true)
  }
  def destroy = {
  }
} 